package com.classes;

/**
 * Created by mporcino on 6/13/14.
 */
public class Book extends Item {
    private String title;
    private int ISSBN;
    private String author;
    private int pages;

    public Book(String title, int ISSBN)
    {
        super();

        this.title = title;
        this.ISSBN = ISSBN;
    }

    public String getInfo()
    {
        return "ID " + this.id + "\n"
                + "Title: " + this.title;
    }

    public String getDetails()
    {
        return "ID: " + this.id + "\n"
               + "ISSBN: " + this.ISSBN + "\n"
               + "Title: " + this.title + "\n"
               + "Author: " + this.author + "\n"
               + "Pages: " + this.pages + "\n";
    }
}
